import { Controller, Service } from "egg";
import EntityDao from "../dao";

export class DaoService extends Service {
  /**
   * 数据操作模型
   */
  public dao: EntityDao;
}

export abstract class BusinessController<T extends DaoService> extends Controller {
  public business: T;
  abstract create?(): Promise<any>;
}
